package com.fishbone.cloud.user.api.feign;

import com.fishbone.cloud.user.api.bo.UserBO;
import com.fishbone.core.api.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author huyaxi
 */
@FeignClient(name = "fishbone-user")
public interface IUserClient {
    String API_PREFIX = "/user";
    String USER_AUTH = API_PREFIX + "/user-auth";

    /**
     * 查询用户信息
     * @param tenant
     * @param account
     * @return
     */
    @GetMapping(USER_AUTH)
    ResponseEntity<UserBO> getUserAuth(@RequestParam("tenant") String tenant, @RequestParam("account") String account);

}
